package com.apanal.qlife.advice.service;

import java.text.ParseException;

import com.apanal.qlife.advice.model.Advice;
import com.apanal.qlife.advice.model.AdviceOrgAreaRel;
import com.apanal.qlife.common.page.Page;
import com.apanal.qlife.common.page.PageReturn;
import com.apanal.qlife.org.model.Organization;
import com.apanal.qlife.sys.model.User;

public interface SysAnnounceService {
	PageReturn<Advice> findAdviceBycond(Advice advice, Page page);

	String insert(Advice advice, User user) throws ParseException;

	PageReturn<Advice> findAppAnnouceList(Advice advice, Page page);

	Advice findAppAnnouceDtail(Advice advice);

	String insertAdviceOrgRel(AdviceOrgAreaRel adr);

	String insertAdvice(Advice advice);

	Advice findDetailById(Long advId);

	String updateAppAonnce(Advice ac, User user, Advice advice)
			throws ParseException;

	String updateAnnounce(Advice advice, User user, Advice ac)
			throws ParseException;

	PageReturn<Advice> findAdviceBycondNo(Advice advice, Page page);

	PageReturn<Advice> findAppAnnouceListNo(Advice advice, Page page);

	String modifyAnnounce(Advice ac);

	String deleteAnnounce(Advice ac);

	String insertAppAdvice(Advice advice, User user) throws ParseException;

	String modifyAppAonnce(Advice ac);

	String deleteAppAonnce(Advice ac);

	/**
	 * 首页查询公告列表的接口
	 * 
	 * @param user
	 * @return
	 */

	PageReturn<Advice> findAonnce(Long orgId, Page page, Advice advice);

	/**
	 * 首页查询公告详情的接口
	 * 
	 * @param user
	 * @return
	 */
	Advice findSysAnnounceDtail(Long advId);

	PageReturn<Advice> findAdvice(Advice advice, Organization org, Page page);

}
